var verify_cost_expDate = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_cost_expDate"}');
//成本结束日期必须晚于成本生效日期
if (!isNull(cost_end_date)) {
    if (isNull(cost_start_date)) {
        verify_cost_expDate.CODE = 2;
        verify_cost_expDate.ACTION = 'risk';
        verify_cost_expDate.MSG = '错误:成本开始日期未填写';
    } else if (compareTimes(cost_end_date, cost_start_date) !== 1) {
        verify_cost_expDate.CODE = 2;
        verify_cost_expDate.ACTION = 'risk';
        verify_cost_expDate.MSG = '错误:成本结束日期必须晚于成本生效日期';
    }
}


JSON.stringify(verify_cost_expDate);